def run(params:list[str]):
    from modelscope.models import Model
    from modelscope.pipelines import pipeline
    from modelscope.utils.constant import Tasks
    # Version less than 1.1 please use TokenClassificationPreprocessor
    from modelscope.preprocessors import TokenClassificationTransformersPreprocessor

    from ApiBase import apiBase

    try:
        req = apiBase.argv(1,'收腰显瘦黑裙长裙')
        model_id = 'damo/nlp_structbert_word-segmentation_chinese-base-ecommerce'
        model = Model.from_pretrained(model_id)
        tokenizer = TokenClassificationTransformersPreprocessor(model.model_dir)
        pipeline_ins = pipeline(task=Tasks.word_segmentation, model=model, preprocessor=tokenizer)
        result = pipeline_ins(input=req)
        print (result)
        # {'output': '收腰 显瘦 黑裙 长裙'}
    finally:
        model=None
        apiBase.close()